package com.qf.common.vo;

import lombok.Getter;

/**
 * 响应状态码
 */
@Getter
public enum ResponseCode {
    /*
     * ===============通用状态码 ===============
     */
    SUCCESS(200, "success"),
    ERROR(404, "error"),
    SYS_ERROR(40400, "sys error"),
    /**
     * 系统相关的
     */

    /**
     * 业务异常
     * <p>
     * 订单状态
     * <p>
     * 用户状态码
     */
//    用户状态码
    ACCOUNT_IS_EXIST(40100, "username  or  phone  is exist");

    private int status;
    private String msg;

    ResponseCode(int status, String msg) {
        this.status = status;
        this.msg = msg;
    }
}
